import { lazy } from 'react';
const Index = lazy(() => import('@/pages/index'));
const Confirm = lazy(() => import('@/pages/confirm'));
const Auth = lazy(() => import('@/pages/auth'));
const LivingInfo = lazy(() => import('@/pages/livingInfo'));
const Finished = lazy(() => import('@/pages/finished'));
const Protocol = lazy(() => import('@/pages/protocol'));
const ErrorPage = lazy(() => import('@/pages/error'));
const VideoUpload = lazy(() => import('@/pages/videoUpload'));
const CheckResult = lazy(() => import('@/pages/checkResult'));

const routes = [
  {
    path: '/',
    component: Index,
    title: '实名信息补充',
    exact: true
  },
  {
    path: '/confirm',
    component: Confirm,
    title: '京东通信号码验证',
    exact: true
  },
  {
    path: '/auth',
    component: Auth,
    title: '实名认证',
    exact: true
  },
  {
    path: '/livingInfo',
    component: LivingInfo,
    title: '活体认证',
    exact: true
  },
  {
    path: '/finished',
    component: Finished,
    title: '',
    exact: true
  },
  {
    path: '/protocol',
    component: Protocol,
    title: '法律责任风险提示告知书',
    exact: true
  },
  {
    path: '/error',
    component: ErrorPage,
    title: '系统异常',
    exact: true
  },
  {
    path: '/videoUpload',
    component: VideoUpload,
    title: '视频上传',
    exact: true
  },
  {
    path: '/checkResult',
    component: CheckResult,
    title: '',
    exact: true
  }
];
export default routes;
